BOOL IterateDir(const CString &strDirName)
{
	
	CFileFind filefinder;
	BOOL flag = TRUE;
	CString strFileName,strSaveFileName,strIdxFileName;
	flag = filefinder.FindFile(strDirName+_T("\\*.*"));
	
	do
	{
		flag = filefinder.FindNextFile();
		
		if(!filefinder.IsDots() && !filefinder.IsTemporary() &&!filefinder.IsDirectory())

		{
			strFileName = filefinder.GetFilePath();
			//do the things as you like
		}
	}while(flag);
		
	return TRUE;
}